ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2024 feature!
Help / WLanguage / WLanguage functions / Communication / Drive functions
  • Dropbox
  • parameter
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Uploads a directory and its contents to a remote drive.
Example
oOAuth2Param is OAuth2Parameters
oOAuth2Param.ClientID = "client_id"
oOAuth2Param.ClientSecret = "client_secret"
oOAuth2Param.RedirectionURL = "http://localhost:9000/"
// Connect to OneDrive

oDrive is Drive
oDrive = oDriveConnect(oOAuth2Param)

// Select and upload directory
sDirectory is string
sDirectory = fSelectDir(fExeDir(), "Local directory to upload")
IF oDrive.UploadDirectory(sDirectory, "/To check") = False THEN
Error("Unable to upload directory", ErrorInfo())
RETURN
END
Syntax
<Result> = <Drive>.UploadDirectory(<Directory to upload> , <Destination directory>)
<Result>: Boolean
  • True if the directory was uploaded,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Drive>: Drive or gglDrive variable
Name of the Drive or gglDrive variable that corresponds to the drive to be used. The connection to the drive must have been previously established. Otherwise, the directory is not uploaded..
<Directory to upload>: Character string
Absolute path of the local directory to be uploaded. If this parameter does not correspond to a valid path, the directory and its contents will not be uploaded.
<Destination directory>: Character string
Absolute path of the destination directory in the drive.
  • If this parameter does not correspond to a valid path, the element will not be uploaded.
  • Missing directories in the path are not created.
  • If the directory already exists at the location specified in the drive, it will be merged with the uploaded directory.
Remarks

Dropbox

Depending on the type of Dropbox account used, calls to this function may count as data transport calls. Some types of accounts have a monthly data transport limit. For more details, see https://www.dropbox.com/developers/reference/data-transport-limit.

<Destination directory> parameter

Examples of valid paths:
"/holidays directory/2021/"
"\photos"
Examples of invalid paths:
"directoryA/DirectoryB"
"This/Path/Is/invalid"
"c:\Users\"
Business / UI classification: Business Logic
Component: wd290ggl.dll
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/08/2024

Send a report | Local help